home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1998 October / Macworld (1998-10).dmg / Shareware World / Info / For Developers / MacZoop 1.8.4 / More Classes / Window Classes / xDEFJump.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-07-22  |  791 b   |  42 lines  |  [TEXT/CWIE]

  1. /*************************************************************************************************
  2. *
  3. *        xDEFJump.h            - allows embedded xDEFs to be called internally
  4. *
  5. *
  6. *        13/7/94  Graham Cox
  7. *
  8. *
  9. *************************************************************************************************/
  10.  
  11.  
  12. #include    <MixedMode.h>
  13.  
  14.  
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18.  
  19. #if PRAGMA_ALIGN_SUPPORTED
  20. #pragma options align= mac68k
  21. #endif
  22.  
  23. typedef struct
  24. {
  25.    short   Jmp;            // jmp instruction
  26.    void*   Routine;        // address to jump to
  27. }
  28. JmpInstructionTemplate;
  29.  
  30. #if PRAGMA_ALIGN_SUPPORTED
  31. #pragma options align= reset
  32. #endif
  33.  
  34.  
  35. Handle    GetUniversalFunctionHandle(ProcPtr functionAddress,ProcInfoType pInfo);
  36. void     PatchJmpInstruction(void* patchAddress, void* jumpAddress);
  37.  
  38.  
  39. #ifdef __cplusplus
  40. }
  41. #endif
  42.